This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
I don't think you can get both a writer and a stream at the same time
Hi Simon,
Have you found a solution yet?
I'm not sure, but I believe that I somewhere read that you can't get both a writer and a stream at the same time. You have to choose, so maybe you should try the following code instead:
if (IWantAWriter == true) {
var rw = facesContext.getResponseWriter();
rw.write("We have a writer");
} else {
var rs = facesContext.getResponseStream();
rs.write("We have a stream");
}
Feedback response number WEBB7RTC5G created by ~Ted Xanjumilyoni on 05/07/2009